<?php if($this->pageCount > 0){
	// you need to add each of he request parameters to url
	$params = Zend_Controller_Front::getInstance()->getRequest()->getParams();
	
	// remove the system parameters
	unset($params['module']);
	unset($params['controller']);
	unset($params['action']);
?>

<ul id="pagination-digg">
<!---------------------------- Previous page link  ------------------------->
<?php if(isset($this->previous)) {?>
	<li class="previous">	
		<a href="<?php echo $this->url(array_merge($params, array('page' => $this->previous)));?>">
			&lt;Previous
		</a>
	</li> 
<?php } else {?>
	<li class="previous-off">&lt; Previous</li>	
<?php }?>

<!---------------------------- Numbered page links ------------------------->
<?php foreach($this->pagesInRange as $page){?>
	<?php if($page != $this->current){?>
	<li>
		<a href="<?php echo $this->url(array_merge($params, array('page' => $page)));?>">
			<?php echo $page; ?>
		</a>
	</li>
	<?php } else {?>
	<li class="active">
		<?php echo $page; ?>
	</li>
	<?php }?>
<?php }?>

<!----------------------------- Next page link ----------------------------->
<?php if(isset($this->next)){?>
	<li class="next">
		<a href="<?php echo $this->url(array_merge($params, array('page' => $this->next)));?>">
			Next&gt;
		</a>
	</li>
<?php } else {?>
	<li class="next-off">Next &gt;</li>
<?php }?>
</ul>
<?php }?>

